package com.kye.express.business.jd.shop.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author : Joe
 * @version : 1.0
 * @editor : Joe
 * @created : 29/01/2018
 * @updated : 29/01/2018
 * @description : <Description>
 * @update_reason : <UpdateReason>
 *
 */

public class JDTitleModel implements Parcelable {

    public final static int TYPE_CATEGORY = 0;
    public final static int TYPE_HOT = 1;

    private int type;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.type);
    }

    public JDTitleModel() {
    }

    protected JDTitleModel(Parcel in) {
        this.type = in.readInt();
    }

    public static final Parcelable.Creator<JDTitleModel> CREATOR = new Parcelable.Creator<JDTitleModel>() {
        @Override
        public JDTitleModel createFromParcel(Parcel source) {
            return new JDTitleModel(source);
        }

        @Override
        public JDTitleModel[] newArray(int size) {
            return new JDTitleModel[size];
        }
    };
}
